// CheckDlg.h : header file
//

#if !defined(AFX_CHECKDLG_H__A54C3A11_F6B1_4821_996A_15132BE91AB1__INCLUDED_)
#define AFX_CHECKDLG_H__A54C3A11_F6B1_4821_996A_15132BE91AB1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "HoverButton.h"
#include "soapBasicHttpBinding_USCOREIService1Proxy.h"
/////////////////////////////////////////////////////////////////////////////
// CCheckDlg dialog

class CCheckDlg : public CDialog
{
// Construction
public:
	CCheckDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCheckDlg)
	enum { IDD = IDD_CHECK_DIALOG };
	CButton	m_check3;
	CButton	m_check2;
	CButton	m_open;
	CButton	m_check1;
	CStatic	m_con_show;
	CStatic	m_proc;
	CStatic	m_pass1;
	CButton	m_check;
	CButton	m_load;
	CEdit	m_initpass;
	CHoverButton	m_one;
	CHoverButton	m_two;	
	CString	m_val_show;
	CString	m_val_val;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCheckDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCheckDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg void OnButton4();	
	afx_msg void OnButton7();		
	afx_msg void OnButton6();
	afx_msg void OnButton8();
	afx_msg void OnButton9();
	afx_msg void OnButton10();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	UINT m_nSelect;
	//int gi_sec;
	HANDLE gl_hand;
	unsigned char gc_last[6];
	unsigned long gl_use_snr;
	CBitmap m_pass,m_unpass,m_curr,m_red,m_green;
	void f_setbmp(CStatic*,int);
	void f_setpassbmp(CStatic*,int);
	void f_setcurrbmp(CStatic*);
	void Cala_Key(unsigned char *snr,unsigned char *password,unsigned char * KeyA);
	void bcd_to_asc(unsigned char * ascii_buf ,unsigned char *bcd_buf ,int conv_len ,unsigned char type);
	void hex_a(unsigned char *hex,unsigned char *a,unsigned char length);
	void a_hex(unsigned char *a,unsigned char *hex,unsigned char len);	
	int f_listxm();
	int f_setnum();
	int f_setnum2();
	CString Utf8ToGBK(LPCTSTR strUtf8) ;
private:
	int RefreshButtons(int nSelect);
	void SetupRadioBtns();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHECKDLG_H__A54C3A11_F6B1_4821_996A_15132BE91AB1__INCLUDED_)
